﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace ProgramCat.FiddlerExtension.Core.JsonEditor
{
    public interface IJsonViewerPlugin
    {
        string DisplayName { get; }
        bool CanVisualize(JsonObject jsonObject);
    }

    public interface ICustomTextProvider : IJsonViewerPlugin
    {
        string GetText(JsonObject jsonObject);
    }

    public interface IJsonVisualizer : IJsonViewerPlugin
    {
        Control GetControl(JsonObject jsonObject);
        void Visualize(JsonObject jsonObject);
    }
}
